package com.forever.music;

import java.util.List;

import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class LyricAdapter extends BaseAdapter {
	private Context mContext;
	private List mList;
	
	public LyricAdapter(Context context, List list) {
		mContext = context;
		mList = list;
		Log.i("musicDemo","LyricAdapter()**********" + list.size());
	}

	public int getCount() {
		Log.i("musicDemo","Lyric ^^^^^^getCount**********" + mList.size());
		return mList.size();
	}

	public Object getItem(int position) {
		
		return mList.get(position);
	}

	public long getItemId(int position) {
		return position;
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		View view ;
		if (convertView == null) {
			view = LayoutInflater.from(mContext).inflate(R.layout.lyric_item, null);
			Log.i("musicDemo","getView()****view=null******position" + position);
			
		}else {
			view = convertView;
			Log.i("musicDemo","getView()****view=null******position" + position);
		}
		/*TextView textView = (TextView) view.findViewById(R.id.textView_lyric_item);
		textView.setText(((LyricContent)mList.get(position)).getLyric());*/
		return view;
	}

}
